/*
 * @Author: EuniceShaw
 * @Date: 2022-02-20 10:20:52
 * @LastEditors: EuniceShaw
 * @LastEditTime: 2022-04-10 19:16:49
 * @Description:
 *
 */
import { createApp } from 'vue';
import App from './App.vue';
import router from '@/router';
import store, { key } from '@/store';

// 初始化css 重置css默认样式
import 'normalize.css/normalize.css';
// 全局 css
// import '@/assets/styles/index.scss' vite.config.js里面配置了，main.ts就不用配置了
import 'virtual:svg-icons-register';
import initSvgIcon from '@/icons/index';
// element plus
import installElementPlus from '@/plugins/element';
// 挂载到vue实例上
// import { ElMessageBox, ElMessage, ElNotification } from 'element-plus'

const size = store.state.app.size

createApp(App).use(store, key).use(installElementPlus, { size }).use(initSvgIcon).use(router).mount('#app');